<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  function test_library(data) {
    if (arguments.length === 0) {
      throw new TypeError("1 argument required, but only 0 present.");
    }

    return data
  }

  try {
    test_library()
  } catch (e) {
    console.log(e)
  }
</script>
</body>
</html>